How to use Solver in Matlab?
    9 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Yasaswi
 el 25 de Mayo de 2024
  
    
    
    
    
    Respondida: Abhishek Kumar Singh
      
 el 25 de Mayo de 2024
            Hi,
Im optimising prices based on excel formulas. I have constructed a complete set of financial statements which is all linked to many cells. Can I upload that excel file to Matlab and work on Solver?
I have Objective cell, Change variable cells and Constraints in excel's solver. Can someone guide me how to use non linear solver in matlab please? Im using Web Matlab.
0 comentarios
Respuesta aceptada
  Abhishek Kumar Singh
      
 el 25 de Mayo de 2024
        Hi @Yasaswi
You can easily work with Excel files and solve optimization problems in MATLAB. Start by importing your Excel data using the readtable function. Check out how to use it here.
Next, define your optimization problem in MATLAB. Create a function for your objective that takes a vector of variables and returns your objective metric. For non-linear constraints, define separate functions for the constraint values and gradients.
For solving non-linear optimization, MATLAB offers various solvers. Explore the solver-based nonlinear optimization documentation here for functions and examples that can help. A good starting example is this fmincon solver guide.
Hope this helps!
0 comentarios
Más respuestas (0)
Ver también
Categorías
				Más información sobre Solver Outputs and Iterative Display en Help Center y File Exchange.
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

