@@ -91,7 +91,7 @@ individuals by calling the :func:`pygmo.sort_population_mo()` function.
91
91
:attr:`~pygmo.problem.c_tol` attribute from the population's problem is used.
92
92
93
93
Returns:
94
- :class:`float `: the index of the best individual
94
+ :class:`int `: the index of the best individual
95
95
96
96
Raises:
97
97
ValueError: if the problem is multiobjective and thus a best individual is not well defined, or if the population is empty
@@ -115,7 +115,7 @@ individuals by calling the :func:`pygmo.sort_population_mo()` function.
115
115
tol (:class:`float` or array-like object): scalar tolerance or vector of tolerances to be applied to each constraints
116
116
117
117
Returns:
118
- :class:`float `: the index of the worst individual
118
+ :class:`int `: the index of the worst individual
119
119
120
120
Raises:
121
121
ValueError: if the problem is multiobjective and thus a worst individual is not well defined, or if the population is empty
@@ -298,7 +298,7 @@ std::string population_get_seed_docstring()
298
298
This method will return the random seed of the population.
299
299
300
300
Returns:
301
- :class:`float `: the random seed of the population
301
+ :class:`int `: the random seed of the population
302
302
303
303
)" ;
304
304
}
@@ -602,7 +602,7 @@ will be assumed. The number of objectives returned by the UDP is checked upon th
602
602
of a :class:`~pygmo.problem`.
603
603
604
604
Returns:
605
- :class:`float `: the number of objectives of the problem
605
+ :class:`int `: the number of objectives of the problem
606
606
607
607
)" ;
608
608
}
@@ -617,7 +617,7 @@ This method will return :math:`n_{x}`, the dimension of the problem as establish
617
617
the bounds returned by :func:`~pygmo.problem.get_bounds()`.
618
618
619
619
Returns:
620
- :class:`float `: the dimension of the problem
620
+ :class:`int `: the dimension of the problem
621
621
622
622
)" ;
623
623
}
@@ -636,7 +636,7 @@ The integer dimension returned by the UDP is checked upon the construction
636
636
of a :class:`~pygmo.problem`.
637
637
638
638
Returns:
639
- :class:`float `: the integer dimension of the problem
639
+ :class:`int `: the integer dimension of the problem
640
640
641
641
)" ;
642
642
}
@@ -650,7 +650,7 @@ Continuous dimension of the problem.
650
650
This method will return :math:`n_{cx}`, the continuous dimension of the problem.
651
651
652
652
Returns:
653
- :class:`float `: the continuous dimension of the problem
653
+ :class:`int `: the continuous dimension of the problem
654
654
655
655
)" ;
656
656
}
@@ -665,7 +665,7 @@ This method will return :math:`n_{f}`, the dimension of the fitness, which is th
665
665
:math:`n_{obj}`, :math:`n_{ec}` and :math:`n_{ic}`.
666
666
667
667
Returns:
668
- :class:`float `: the dimension of the fitness
668
+ :class:`int `: the dimension of the fitness
669
669
670
670
)" ;
671
671
}
@@ -684,7 +684,7 @@ The number of equality constraints returned by the UDP is checked upon the const
684
684
of a :class:`~pygmo.problem`.
685
685
686
686
Returns:
687
- :class:`float `: the number of equality constraints of the problem
687
+ :class:`int `: the number of equality constraints of the problem
688
688
689
689
)" ;
690
690
}
@@ -703,7 +703,7 @@ The number of inequality constraints returned by the UDP is checked upon the con
703
703
of a :class:`~pygmo.problem`.
704
704
705
705
Returns:
706
- :class:`float `: the number of inequality constraints of the problem
706
+ :class:`int `: the number of inequality constraints of the problem
707
707
708
708
)" ;
709
709
}
@@ -718,7 +718,7 @@ This method will return the sum of the output of :func:`~pygmo.problem.get_nic()
718
718
:func:`~pygmo.problem.get_nec()` (i.e., the total number of constraints).
719
719
720
720
Returns:
721
- :class:`float `: the total number of constraints of the problem
721
+ :class:`int `: the total number of constraints of the problem
722
722
723
723
)" ;
724
724
}
@@ -1589,7 +1589,7 @@ std::string mbh_get_seed_docstring()
1589
1589
Get the seed value that was used for the construction of this :class:`~pygmo.mbh`.
1590
1590
1591
1591
Returns:
1592
- :class:`float `: the seed value
1592
+ :class:`int `: the seed value
1593
1593
1594
1594
)" ;
1595
1595
}
@@ -1601,7 +1601,7 @@ std::string mbh_get_verbosity_docstring()
1601
1601
Get the verbosity level value that was used for the construction of this :class:`~pygmo.mbh`.
1602
1602
1603
1603
Returns:
1604
- :class:`float `: the verbosity level
1604
+ :class:`int `: the verbosity level
1605
1605
1606
1606
)" ;
1607
1607
}
@@ -2064,7 +2064,7 @@ std::string generic_uda_get_seed_docstring()
2064
2064
This method will return the random seed used internally by this uda.
2065
2065
2066
2066
Returns:
2067
- :class:`float `: the random seed of the population
2067
+ :class:`int `: the random seed of the population
2068
2068
)" ;
2069
2069
}
2070
2070
@@ -5392,7 +5392,7 @@ The ``maxeval`` stopping criterion instructs the solver to stop when the number
5392
5392
``maxeval``. Defaults to 0 (that is, this stopping criterion is disabled by default).
5393
5393
5394
5394
Returns:
5395
- :class:`float `: the value of the ``maxeval`` stopping criterion
5395
+ :class:`int `: the value of the ``maxeval`` stopping criterion
5396
5396
5397
5397
Raises:
5398
5398
unspecified: any exception thrown by failures at the intersection between C++ and Python (e.g.,
@@ -5449,7 +5449,7 @@ std::string nlopt_get_last_opt_result_docstring()
5449
5449
Get the result of the last optimisation.
5450
5450
5451
5451
Returns:
5452
- :class:`float `: the NLopt return code for the last optimisation run, or ``NLOPT_SUCCESS`` if no optimisations have been run yet
5452
+ :class:`int `: the NLopt return code for the last optimisation run, or ``NLOPT_SUCCESS`` if no optimisations have been run yet
5453
5453
5454
5454
Raises:
5455
5455
unspecified: any exception thrown by failures at the intersection between C++ and Python (e.g.,
@@ -5954,7 +5954,7 @@ std::string ipopt_get_last_opt_result_docstring()
5954
5954
Get the result of the last optimisation.
5955
5955
5956
5956
Returns:
5957
- :class:`float `: the Ipopt return code for the last optimisation run, or ``Ipopt::Solve_Succeeded`` if no optimisations have been run yet
5957
+ :class:`int `: the Ipopt return code for the last optimisation run, or ``Ipopt::Solve_Succeeded`` if no optimisations have been run yet
5958
5958
5959
5959
Raises:
5960
5960
unspecified: any exception thrown by failures at the intersection between C++ and Python (e.g.,
0 commit comments